package main

import (
	"fmt"
	"runtime"
	"time"
)

var count uint

func main() {
	for {
		q := time.Now()
		runtime.GC()
		p := time.Now().Format("15时02分05秒")
		count++
		fmt.Printf("%v:什么%v什么\n", p, count)
		qs := time.Now()
		qsf := time.Now().Sub(qs)
		fmt.Printf("这是个文本%v\n", qsf)
		fmt.Printf(
			"%v:B：啊？\n",
			time.Now().Format("15时02分05秒"),
		)
		runtime.GC()
		qf := time.Now().Sub(q)
		fmt.Println("花费时间", qf)
		time.Sleep(time.Second)
		for {
			runtime.Gosched()
			fmt.Printf("%v -> 分配完毕", time.Now().Format("15-02-05"))
			time.Sleep(time.Microsecond * 666) //卡在这个for循环了

		}
	}

}
